home *** CD-ROM | disk | FTP | other *** search
- rem Copyright (c) PhoneLink plc
- rem PSL MPC3 - ISDN (10/8/95)
-
-
- label InitDevice
- echo off
- echo script[59]
- send "at&o1s114=115char(13)"
- find "OK"
- send "char(01)$200"
- send "at&O1e0&k1s39=3s112=0&d2char(13)"
- timeout 2,modem_fail
- find "OK"
- send "ATOchar(13)"
- timeout 5,data_mode_fail
- find "*"
- send "set1:1,2:0,3:0,4:20,5:1,12:1,6:5,15:0char(13)"
- timeout 5,pad_set_fail
- find "*"
- send "char(16)"
- timeout 5,ctrl_p_fail
- find "OK"
- label OffToGate
- rem ISDN Offline to Gate (also contains Pad to Gate)
- echo off
- echo script[52]..
- send "atdt{PreTel}{SiteTel}{PostFix}char(13)"
- timeout 10,connect_fail
- finderr 0,BUSY,busy
- finderr 103,NO DIALTONE,connect_fail
- finderr 0,NO CARRIER,no_carrier
- find "CONNECT"
- timeout 5,pad_fail
- find "*"
- label PadToGate
- echo off
- echo script[53]
- send "{NUA}char(13)"
- timeout 3,nua_bad1
- finderr 0,COM,nua_good
- find "ZZZ"
- label nua_bad1
- echo script[58]
- send "{NUA}char(13)"
- timeout 3,nua_bad2
- finderr 0,COM,nua_good
- find "ZZZ"
- label nua_bad2
- echo script[58]
- send "{NUA}char(13)"
- timeout 3,nua_fail
- finderr 0,CLR DTE,dte_cleared
- finderr 0,CLR DER,der_cleared
- finderr 0,RESET,reset
- finderr 0,CLR OCC,occ_cleared
- find "COM"
- label nua_good
- echo script[54].
- end
-
- label GateToPad
- echo off
- echo script[92]
- send "char(16)"
- timeout 10,ctrl_p_fail
- find "*"
- mwait 500
- send "CLRchar(13)"
- timeout 10,clear_fail
- find "CLR CONF"
- echo script[91].
- end
-
- label GateToOff
- rem Gate to Offline (also contains Pad to Offline)
- echo off
- echo script[92]
- send "char(16)"
- timeout 10,ctrl_p_fail
- find "*"
- mwait 500
- send "CLRchar(13)"
- timeout 10,clear_fail
- find "CLR CONF"
- label PadToOff
- echo off
- echo script[92]
- send "char(16)"
- timeout 5,command_mode_fail
- find "OK"
- send "athchar(13)"
- timeout 5,hang_up_fail
- find "OK"
- echo script[99].
- end
-
- label modem_offline
- echo script[92]
- send "char(16)"
- timeout 5,clear
- find "*"
- mwait 500
- label clear
- send "CLRchar(13)"
- timeout 5,command_mode
- find "CLR CONF"
- label command_mode
- send "char(16)"
- timeout 5,hang_up
- find "OK"
- label hang_up
- send "athchar(13)"
- timeout 5,hang_fail
- find "OK"
- label hang_fail
- abort
-
- label modem_fail
- echo script[23]
- abort
-
- label data_mode_fail
- echo script[16]
- abort
-
- label connect_fail
- echo script[1]
- goto hang_up
-
- label busy
- echo script[2]
- goto hang_up
-
- label no_carrier
- echo script[3]
- goto hang_up
-
- label pad_fail
- echo script[4]
- goto command_mode
-
- label pad_set_fail
- echo script[5]
- goto command_mode
-
- label nua_fail
- echo script[22]
- goto command_mode
-
- label dte_cleared
- echo script[6]
- goto command_mode
-
- label der_cleared
- echo script[7]
- goto command_mode
-
- label reset
- echo script[8]
- goto command_mode
-
- label occ_cleared
- echo script[9]
- goto command_mode
-
- label ctrl_p_fail
- echo script[12]
- goto modem_offline
-
- label clear_fail
- echo script[13]
- goto clear
-
- label command_mode_fail
- echo script[15]
- goto command_mode
-
- label hang_up_fail
- echo script[17]
- abort
-